<?php
class mySQL extends DB_Core
{	
	 public function connect($server='', $username='', $password='', $new_link=true, $client_flags=0) 
        { 
            $this->link = mysql_connect($server, $username, $password, $new_link, $client_flags); 
        } 
	 public function query($query, $safe_query=true) 
        { 
			if($safe_query)
			{
            	return mysql_query(mysql_real_escape_string($query, $this->link), $this->link);
			}
			else
			{
				return mysql_query($query, $this->link);
			}
			
    
		public function fetch_array($result, $array_type = MYSQL_BOTH) 
        { 
            return mysql_fetch_array($result, $array_type); 
        } 

        public function fetch_row($result) 
        { 
            return mysql_fetch_row($result); 
        } 
         
        public function fetch_assoc($result) 
        { 
            return mysql_fetch_assoc($result); 
        } 
         
        public function fetch_object($result) 
        { 
            return mysql_fetch_object($result); 
        } 
         
        public function num_rows($result) 
        { 
            return mysql_num_rows($result); 
        } 
         
        public function close() 
        { 
            return mysql_close($this->link); 
        } 
		public function works()
		{
			echo "It appears that this crappy uml structure works in PHP!";
		}
} 
?>

<?php
$db = new mySQL;
$db->works();